package com.zut.fitness.service.impl;


import com.zut.fitness.mapper.CoachClassMapper;
import com.zut.fitness.mapper.FitnessCoachMapper;
import com.zut.fitness.pojo.FitnessCoach;
import com.zut.fitness.pojo.vo.CoachClassVo;
import com.zut.fitness.service.ICoachClassService;
import com.zut.fitness.pojo.CoachClass;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 私教课程列表Service业务层处理
 * 
 * @author yuanML2018
 * @date 2025-01-04
 */
@Service
public class CoachClassServiceImpl implements ICoachClassService
{
    @Autowired
    private CoachClassMapper coachClassMapper;

    @Autowired
    private FitnessCoachMapper fitnessCoachMapper;
    /**
     * 查询私教课程列表
     * 
     * @param id 私教课程列表主键
     * @return 私教课程列表
     */
    @Override
    public CoachClass selectCoachClassById(Long id)
    {
        return coachClassMapper.selectCoachClassById(id);
    }

    /**
     * 查询私教课程列表列表
     * 
     * @param coachClass 私教课程列表
     * @return 私教课程列表
     */
    @Override
    public List<CoachClass> selectCoachClassList(CoachClass coachClass)
    {
        return coachClassMapper.selectCoachClassList(coachClass);
    }

    @Override
    public CoachClassVo selectCoachClassByCoachId(Long id) {

        CoachClassVo coachClassVo = coachClassMapper.selectByCoachId(id);
        return coachClassVo;
    }


}
